const mongoose = require("mongoose");

var UserSchema = {
    username : String,
    password : String,
    create_time : Date,
    last_login : Date
};

function loadSchema() {
    return mongoose.model("t_user", mongoose.Schema(UserSchema));
}

module.exports = {
    loadSchema : loadSchema,
    Schema : UserSchema
};